import './style/index.css';
import './style/index.less';
import '../../icon/iconfont.css';
import 'core-js';
import './js/hellow.js';
import './js/hitets.js';

function addNum(x, y) {
  return x + y
}
console.log(addNum(1, 2))

const test = (m, n) => {
    return m + n
  }
  [123].includes(123)

const myPromise = new Promise((reserve, reject) => {
  setTimeout(() => {
    console.log("Promise函数执行了...");
    reserve(666)
  }, 2000)
})

console.log(addNum(1, 2) + test(1, 2));

console.log("myPromise:", myPromise)


//如果开启了热更新，只有当hellow.js发生变化 才会更新该文件
if (module.hot) {
  module.hot.accept('./js/hellow.js',function(){
    print()
  })
}
